﻿<div ng-controller="visitorRecordController">
    <div class="row">
        <div class="col-md-12">
            <div class="panel panel-inverse">
                <div class="panel-heading">
                    <div class="panel-heading-btn">
                        <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-default" data-click="panel-expand"><i class="fa fa-expand"></i></a>
                    </div>
                    <h4 class="panel-title">手续费管理</h4>
                </div>
                <div class="panel-body">
                    <div class="form-inline filter-option">
                        <div class="row">
                            <div class="col-md-12">
                                访客操作记录列表
                                <div class="pull-right">
                                    <input type="text" placeholder="开始时间" id="start_time" name="start_time" ng-model="filter.deadlineTime1" class="form-control input-sm" />
                                    <span>——</span>
                                    <input type="text" placeholder="结束时间" id="end_time" name="end_time" ng-model="filter.deadlineTime2" class="form-control input-sm" />
                                    <button class="btn btn-sm btn-info" ng-click="refresh()"><i class="fa fa-search"></i> 筛选</button>
                                </div>
                            </div>
                        </div>
                    </div>
                    <table id="data-table" ng-table="tableParams" template-pagination="template/pagination.html" class="table table-striped table-bordered table-hover table-condensed">
                        <tr ng-repeat="item in $data">
                            <td data-title="'访客名称'" class="text-center">{{ item.operateName }}</td>
                            <td data-title="'操作明细'" sortable="'commission_rate'" class="text-center">{{ item.operateDescription }}</td>
                            <td data-title="'访问时间'" sortable="'commission_rate'" class="text-center">{{ item.createTime | date:'yyyy-MM-dd HH:mm:ss' }}</td>                    
                        </tr>
                    </table>
                </div>

            </div>
        </div>
    </div>


    <!-- #手续费修改模态框 -->
    <div class="modal fade" id="modal-edit">
        <div class="modal-dialog">
            <div class="modal-content">
                <ng-form name="editForm" novalidate>
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                        <h4 class="modal-title"><i class="fa fa-lg fa-edit text-success"></i> 请核对并充值</h4>
                    </div>
                    <div class="modal-body">
                        <div class="form-horizontal form-inline">
                            <div class="form-group" ng-class="{ 'has-error': editForm.enterprise_name.$invalid && !editForm.enterprise_name.$pristine }">
                                <label class="col-md-5 control-label"><font color="red">*</font> 企业名称：</label>
                                <div class="col-md-7">
                                    <input type="text" name="start_time" ng-model="model.enterprise_name" class="form-control" required />
                                </div>
                            </div>
                            <div class="form-group" ng-class="{ 'has-error': editForm.commission_rate.$invalid && editForm.commission_rate.$dirty }">
                                <label class="col-md-6 control-label"><font color="red">*</font> 输入充值金额（元）：</label>
                                <div class="col-md-6">
                                    <input type="text" name="end_time" ng-model="model.commission_rate" class="form-control" required />
                                </div>
                            </div>
                            <div class="form-group" ng-class="{ 'has-error': editForm.commission_limit.$invalid && editForm.commission_limit.$dirty }">
                                <label class="col-md-5 control-label"><font color="red">*</font>选择兑换比率 ：</label>
                                <div class="col-md-7">
                                    <select class="form-control">
                                        <option value="">1:1</option>
                                        <option value="">1:1.1</option>
                                        <option value="">1:1.2</option>
                                        <option value="">1:1.3</option>
                                        <option value="">1:1.4</option>
                                        <option value="">1:1.5</option>
                                    </select>
                                    兑换汇票豆<span class="beanNum">0</span>个
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="modal-footer">
                        <button type="submit" class="btn btn-sm btn-success" ng-click="save()" ng-disabled="editForm.$invalid"><i class="fa fa-save"></i>确定</button>
                        <button type="button" class="btn btn-sm btn-white" data-dismiss="modal"><i class="fa fa-share-square-o"></i>取消</button>
                    </div>
                </ng-form>
            </div>
        </div>
    </div>
</div>

